package org.clsmzxy.class2333;

public class Example15 {
    public static void main(String[] args){
        Animal01 animal01 = new Cat01();
        if(animal01 instanceof Dog01){
            Dog01 dog01 = (Dog01)  animal01;
            dog01.houseKeep();
        }else {
            System.out.println("对象类型向下转换不合法");
        }
    }
}
